package com.woniuxy.dudugua.controller;


import com.woniuxy.dudugua.entity.Product;
import com.woniuxy.dudugua.service.ProductsService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.woniuxy.dudugua.util.Result;

import javax.annotation.Resource;
import java.util.HashMap;

/**
 * @author JadeFang
 * @Deprecated   主页分页栏四个功能
 */

@RestController
public class ProductsController {
    @Resource
    public ProductsService   productsService;


    //所有商品的查询
    @RequestMapping("selectProductAll")
    public   Result  selectByProucts() throws  Exception{
        return  new Result("200","success",null,productsService.selectByProuct());
    }

    //护肤
    @RequestMapping("selectByProductSkinCare")
    public   Result  selectByProductSkinCare()  throws   Exception{
          return  new Result("200","suceess",null,productsService.selectByProductSkinCare());
    }

    //纹绣
    @RequestMapping("selctByProductTatto")
    public  Result  selectByProuctTatto() throws  Exception{
        return   new Result("200","success",null,productsService.selectByProductTatto());
    }

    //彩妆
    @RequestMapping("selectByProductCosmetics")
    public  Result  selectByProductCosmetics()  throws  Exception{
        return   new Result("200","success",null,productsService.selectByProductCosmetics());
    }

    //学习工具
    @RequestMapping("selectByProductLearningTool")
    public   Result  selectByProductLearningTool()  throws  Exception{
        return  new Result("200","success",null,productsService.selectByProductLearningTool());
    }
}
